home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3winlis.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_WINLIST_H = 1;
- include("oops/r3model.js")
-
-
- var R3CLID_WINLIST = 89;
-
-
-
-
- // Description: Create a new view window. If p2 is not given, view model for the
- // view window is fetched from the view model cache (managed by the winlist).
- // Returns: Object, view window or null
- // p1: Object, parent window
- // p2: Object, view model (r3vmod.h).
- // p3: Boolean, sub window
-
- R3WLIM_NEWVIEW = 89000;
-
- function mR3WLIM_NEWVIEW(p1, p2, p3) {
- return R3ToJS( DoA3(this.r3obj, 89000, p1, R3TID_OBJECT, 0, p2, R3TID_OBJECT, 0, p3, R3TID_BOOLEAN, 0));
- }
-
- // Description: Enumerate all view windows. Calls the given callback object as R3DoA3(callbackobj, callbackmth, model, view,
- // p3);
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Object, data
-
- R3WLIM_ENUMVIEWS = 89001;
-
- function mR3WLIM_ENUMVIEWS(p1, p2, p3) {
- DoA3(this.r3obj, 89001, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Fetch the current view model.
- // Returns: Object, current view model
-
- R3WLIM_GETCURRENTVIEW = 89002;
-
- function mR3WLIM_GETCURRENTVIEW() {
- return R3ToJS( DoA(this.r3obj, 89002, 0, R3TID_INTEGER, 0));
- }
-
-
- R3WLIM_GETVIEW = 89005;
-
- function mR3WLIM_GETVIEW() {
- DoA(this.r3obj, 89005, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Create a new view model or add an existing to the list. If p3
- // is not given, a new view model is created.
- // Returns: Object, view model
- // p1: Boolean, is set makes the object name unique in the list.
- // p3: Object, view model or NULL if creating a new view model
-
- R3WLIM_NEWVIEWMODEL = 89006;
-
- function mR3WLIM_NEWVIEWMODEL(p1, p3) {
- return R3ToJS( DoA2(this.r3obj, 89006, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0));
- }
-
-
-
-
- R3WLIA_List = 89500;
- function GetR3WLIA_List() {
- return R3Get(this.r3obj, R3WLIA_List, R3TID_LIST, R3TNF_ARRAY);
- }
-
- R3WLIA_Parent = 89501;
- function SetR3WLIA_Parent(value) {
- R3Set(this.r3obj, R3WLIA_Parent, value, R3TID_OBJECT, 0);
- }
-
- R3WLIA_UserData = 89504;
- function SetR3WLIA_UserData(value) {
- R3Set(this.r3obj, R3WLIA_UserData, value, R3TID_OBJECT, 0);
- }
-
- function GetR3WLIA_UserData() {
- return R3ToJS(R3Get(this.r3obj, R3WLIA_UserData, R3TID_OBJECT, 0));
- }
-
- R3WLIA_UVView = 89508;
- function SetR3WLIA_UVView(value) {
- R3Set(this.r3obj, R3WLIA_UVView, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3WLIA_UVView() {
- return R3Get(this.r3obj, R3WLIA_UVView, R3TID_BOOLEAN, 0);
- }
-
-
-
- function r3Winlist () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_WINLIST, arguments);
- }
- // Methods
- this.NEWVIEW=mR3WLIM_NEWVIEW;
- this.ENUMVIEWS=mR3WLIM_ENUMVIEWS;
- this.GETCURRENTVIEW=mR3WLIM_GETCURRENTVIEW;
- this.GETVIEW=mR3WLIM_GETVIEW;
- this.NEWVIEWMODEL=mR3WLIM_NEWVIEWMODEL;
-
- // Attributes
- this.GetList=GetR3WLIA_List;
- this.SetParent=SetR3WLIA_Parent;
- this.GetUserData=GetR3WLIA_UserData;
- this.SetUserData=SetR3WLIA_UserData;
- this.GetUVView=GetR3WLIA_UVView;
- this.SetUVView=SetR3WLIA_UVView;
- }
-
- r3Winlist.prototype=new r3Model;
- // r3winlis.h_H